﻿
public class Rootobject
{
	public string Name { get; set; }
	public bool IsDebug { get; set; }
	public bool IsTest { get; set; }
	public string[] TestIps { get; set; }
	public bool IsSaveDataLogout { get; set; }
	public string ServerIpAddress { get; set; }
	public int ServerPort { get; set; }
	public bool IsConsoleWrite { get; set; }
	public Heartdata HeartData { get; set; }
	public Mysql Mysql { get; set; }
	public Mongodb MongoDB { get; set; }
	public Redis Redis { get; set; }
}

public class Heartdata
{
	public string ReqSecretKey { get; set; }
	public int ReqTimeFrame { get; set; }
}

public class Mysql
{
	public string ConnectionString { get; set; }
	public Submeterlen SubmeterLen { get; set; }
}

public class Submeterlen
{
	public int GoodsTable { get; set; }
	public int FriendTable { get; set; }
}

public class Mongodb
{
	public string ConnectionString { get; set; }
	public string DBName { get; set; }
}

public class Redis
{
	public string ConnectionString { get; set; }
	public string CachePrefixKey { get; set; }
	public int CachePattern { get; set; }
	public Sentinelpattern SentinelPattern { get; set; }
	public Colonypattern ColonyPattern { get; set; }
}

public class Sentinelpattern
{
	public string MasterName { get; set; }
	public string SentinelHosts { get; set; }
}

public class Colonypattern
{
	public string WriteServerList { get; set; }
	public string ReadServerList { get; set; }
	public int MaxWritePoolSize { get; set; }
	public int MaxReadPoolSize { get; set; }
	public bool AutoStart { get; set; }
	public int LocalCacheTime { get; set; }
	public bool RecordeLog { get; set; }
}
